//
//  UIView+Shadow.m
//  xiacai_ios_v6
//
//  Created by 王振标 on 2018/4/11.
//  Copyright © 2018年 王振标. All rights reserved.
//

#import "UIView+Shadow.h"
#import "UIView+FrameChange.h"
#import "UIColor+Hex.h"

@implementation UIView (Shadow)

- (void)wzb_addShadow
{
    
    CALayer *subLayer=[CALayer layer];
    CGRect fixframe = self.frame;
    subLayer.frame = fixframe;
    subLayer.backgroundColor=[UIColor colorWithHexString:@"201D25"].CGColor;
    subLayer.masksToBounds=NO;
    subLayer.shadowColor = [UIColor blackColor].CGColor;
    subLayer.shadowOffset = CGSizeMake(0, 15);
    subLayer.shadowOpacity = 0.06;
    subLayer.shadowRadius = 10;
    [self.superview.layer insertSublayer:subLayer below:self.layer];
}

@end
